﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;

namespace DAL.Service
{
    public interface IUserInfoService:IBaseService
    {
        void changepwd(string uid, string pwd);
        IList getUserInfolist(string nick, string name, string enname);
        IList getUserInfoByCard(string nick, string name, string card);
        /// <summary>
        /// 查询用户名记录是否存在,不包含自身
        /// </summary>
        /// <param name="nick"></param>
        /// <returns></returns>
        IList regNick(string nick,string uid);
        /// <summary>
        /// 查询学籍编号记录是否存在,不包含自身
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        IList regNumber(string number,string uid);
        /// <summary>
        /// <param name="uname">中文名</param>
        /// <param name="unick">登录名</param>
        /// <param name="unumber">学籍编号</param>
        /// <param name="ujwclass">嘉沃班级</param>
        /// <param name="uteacher1">教师</param>
        /// <param name="ucard">会员卡号</param>
        /// <param name="uvip">会员状态</param>
        /// <param name="ustate">学员状态</param>
        /// <param name="uregistTime_s">注册时间s</param>
        /// <param name="uregistTime_e">注册时间e</param>
        /// <param name="pageno">当前页</param>
        /// <param name="pagesize">总页</param>
        /// </summary>
        /// <returns></returns>
        IList getUserinfoListSearch(string uname, string unick, string unumber, string ujwclass, string uteacher1, string ucard, string uvip, string ustate, string uregistTime_s, string uregistTime_e, int pageno, int pagesize, string orderName, string orderEname, string orderNumer, string orderBrithday, string orderVip, string orderJwclass, string orderId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="uid">学员ID</param>
        /// <returns></returns>
        IList getuserinfobyid(int uid);

        int updatepass(int uid);
        /// <summary>
        /// 更改会员状态
        /// </summary>
        /// <param name="uid"></param>
        /// <param name="uvip"></param>
        /// <returns></returns>
        int cuvip(string uid, string uvip);

        IList getUserCardList(int uid);

        IList userBooksList(int uid);
        DataTable userBooksListTable(int uid);
        IList getUserInfo(string uname,string upass);

        int getUserSaveCount(int bookid, int uid);
    }
}
